package model;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the d_pemeriksaan_tindakan database table.
 * 
 */
@Embeddable
public class DPemeriksaanTindakanPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;
	private String idCek;
	private String idTindakan;

	public DPemeriksaanTindakanPK() {
	}

	@Column(name="id_cek")
	public String getIdCek() {
		return this.idCek;
	}
	public void setIdCek(String idCek) {
		this.idCek = idCek;
	}

	@Column(name="id_tindakan")
	public String getIdTindakan() {
		return this.idTindakan;
	}
	public void setIdTindakan(String idTindakan) {
		this.idTindakan = idTindakan;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof DPemeriksaanTindakanPK)) {
			return false;
		}
		DPemeriksaanTindakanPK castOther = (DPemeriksaanTindakanPK)other;
		return 
			this.idCek.equals(castOther.idCek)
			&& this.idTindakan.equals(castOther.idTindakan);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.idCek.hashCode();
		hash = hash * prime + this.idTindakan.hashCode();
		
		return hash;
	}
}